Update Business Locations
PATCH /api/v1/businesses/{businessId}/single/other/locations
Description
Update locations for a specific business.
Path Parameters
| Name | Type | Description |
|---|---|---|
businessId | string | The ID of the business (path) |
Request Body
- Content Type:
application/json
{
"userId": "string",
"actionBy": "string",
"businessId": "string",
"locations": [
{
"branchName": "string",
"stateCode": "string",
"cityName": "string",
"latitude": 0,
"longitude": 0,
"extraLocationPrice": 0,
"address": "string"
}
]
}
Response Code: 200 - OK
Description
Locations updated successfully.
Headers
| Content-Type | Value |
|---|---|
| apiKey | {{apiKey}} |
Body
{
"userId": "user123",
"actionBy": "admin",
"businessId": "biz456",
"locations": [
{
"branchName": "Main Branch",
"stateCode": "CA",
"cityName": "San Francisco",
"latitude": 37.7749,
"longitude": -122.4194,
"extraLocationPrice": 100,
"address": "123 Market St"
}
]
}
🔑 Authentication bearer
| Param | Value | Type |
|---|---|---|
| token | {{accessCode}} | string |
LANGUAGE
CURL REQUEST
curl --request PATCH \
--url /api/v1/businesses/{businessId}/single/other/locations \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!